package common.exceptions;

/**
 * Thrown when no row with the key is found
 * 
 * @author Gal Lalouche
 */
public class InvalidKeyException extends Exception {
	/**
	 * @param key They key that was invalid
	 */
	public InvalidKeyException(Object key) {
		super(key + " was not found in the system");
		if (key == null) {
			throw new IllegalArgumentException("key is null");
		}
	}
}
